package com.shexianyu.notes.web.dao;

import com.shexianyu.notes.web.entity.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author sxy
 * @version 1.0
 * @date 2021/2/26 14:21
 */
public interface SysUserRepository extends JpaRepository<SysUser, Integer> {
    //根据账号查询
    SysUser findByAccount(String account);

    //根据token查询
    SysUser findByToken(String token);
}
